const str = 'text/pladfads'
const arr = ['text', 'zip']
for (const value of arr) {
  if (str.includes(value)) {
    console.log(value)
  }
}